package com.caesar.exer3;

import java.util.Date;

/**
 * @author caesar
 * @date 2025/7/21
 * @Description:
 * @apiNote
 */
public class TestExer3 {
    public static void main(String[] args) {
        DateFormatter formatter = new DateFormatter();

        // 创建并启动多个线程，每个线程传入不同的时间戳
        for (int i = 0; i < 5; i++) {
            long time = System.currentTimeMillis() + i * 1000;
            new FormatThread(formatter, new Date(time), "线程-" + i).start();
        }
    }
}
